  <head>
    <title>帖子管理</title>
    <%= javascript_include_tag :defaults %>
  </head>
<% @activities.each do |activity| %>
  <% topic = Topic.find(activity.id) %>
  <%=h topic.title %>&nbsp;&nbsp;&nbsp;
  <%=h activity.deadline %>&nbsp;&nbsp;&nbsp;
  <%= link_to "查看详情", :action=>"show",:id=>topic.id %>
  <%= link_to_remote "评审通过",:url=>{:controller=>"activity", :action=>"agree", :id=>topic.id } %>
  <%= link_to "拒绝通过", :action=>"refuce", :id=>topic.id %>
  <p></p>
<% end %>